home *** CD-ROM | disk | FTP | other *** search
- global version, giEventCount
-
- on startMovie
- set giEventCount to 0
- startOver()
- end
-
- on startOver
- set lsDisplayText to "version " & version
- if version contains "net" then
- repeat with x = 1 to 4
- delete char -30000 of lsDisplayText
- end repeat
- put "Shockwave " before lsDisplayText
- else
- put "Director " before lsDisplayText
- end if
- displayText("You are running " & lsDisplayText)
- puppetSound(0)
- go(1)
- end
-
- on stopMovie
- resetFields()
- puppetSound(0)
- end
-
- on resetFields
- if the shiftDown then
- exit
- end if
- repeat with x in ["output", "display"]
- set the text of member x to " "
- end repeat
- end
-
- on testFrameEvent
- go("frameEvent")
- end
-
- on testMouseEvent
- debugOutput("mouse event")
- end
-
- on testSWA
- go("playSWA")
- debugOutput("playing SWA")
- end
-
- on debugOutput someString
- set giEventCount to giEventCount + 1
- set lsPrefix to giEventCount & ". " & someString
- put lsPrefix & " [generated]" & RETURN before field "output"
- externalEvent(lsPrefix & " [received]")
- end
-
- on generateFrameEvent
- debugOutput("frame event")
- end
-
- on evalScript someString
- debugOutput("evalScript: " & someString)
- do(someString)
- end
-
- on diagnose
- puppetSound(0)
- go("diagnose")
- end
-
- on displayText someString
- set the text of member "display" to string(someString)
- end
-